<!DOCTYPE html>

<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="shortcut icon" href="../sofcollfavicon.ico"  />
        <title>EA Soft College</title>
        <!-- Custom styles for this template -->
        <link href="css/bootstrap.css" rel="stylesheet">
        <link href="css/signin.css" rel="stylesheet">
        <link href="css/style.css" rel="stylesheet">
    </head>

    <body style="">
        <div class="logo">
            <div style="padding-left: 430px;" class="container">
                <form class="form-signin form-4" role="form" method="post" action="../include/login.php" >
                    <h1></h1>
                    <p>
                        <label for="usuario">Usuario</label>
                        <input type="text" name="usuario" placeholder="Usuario" required>
                    </p>
                    <p>
                        <label for="clave">Contrase&ntilde;a</label>
                        <input type="password" name='clave' placeholder="Contrase&ntilde;a" required> 
                    </p>
                    <?php
                    require_once('../include/db.inc.php');
                    include('../cfg/cfg.inc.php');
                    $db = new DbManager();
                    $db->connect(DBHOST, DBUSER, DBPWD, true, true, DBNAME, "");
                    $list = $db->query_select("cllg_entity", NULL);
                    ?>
                    <p>
                        <label for="entidad">Entidad</label>
                        <select name="entidad" id="entidad" placeholder="Entidad educativa" required>
                            <option value="">-Entidad-</option>
                            <?php foreach ($list as $it) { ?>
                                <option value="<?php echo $it["ID"]; ?>" > <?php echo $it["NAME"]; ?> </option>
                            <?php } ?>
                        </select>
                    </p>
                    <p>
                        <input type="submit" name="submit" value="Continuar">
                    </p>  
                </form>​

            </div> <!-- /container -->
        </div>




    </body></html>